<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
{#      图标位置#}
{#    <link rel="icon" href="../../favicon.ico">#}
    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link href="/static/bootstrap-3.3/css/bootstrap.css" rel="stylesheet">
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="/static/bootstrap-3.3/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/static/bootstrap-3.3/css/dashboard.css" rel="stylesheet">
  </head>
  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
{#<nav class="blog-masthead">#}
      <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand" href="#">用户管理</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
           <a class="navbar-brand navbar-right" href="/basic_app/logout">注销</a>
            <a class="navbar-brand navbar-right">{{ request.session.username }}</a>
            <a class="navbar-brand navbar-right">你好，</a>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
        <div class="container-fluid">
          <div class="row">
            <div class="col-sm-3 col-md-2 sidebar">
              <ul class="nav nav-sidebar">
                <li class="active"><a href="#">用户管理 <span class="sr-only">(current)</span></a></li>
                <li><a href="#">实例管理</a></li>
                <li><a href="#">应用管理</a></li>
              </ul>
            </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h2 class="page-header">本系统用户的管理页</h2>
          <div class="table-responsive" >
                <form class="navbar-form navbar-left" role="search">
                    <button type="submit" class="btn btn-default">添加</button>
                    <button type="submit" class="btn btn-default">删除</button>
                    <button type="submit" class="btn btn-default">编辑</button>
                    <button type="submit" class="btn btn-default">锁定</button>
                     <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                     </div>
                        <button type="submit" class="btn btn-default">搜索</button>
                </form>
            <table class="table table-striped table-bordered table-hover">
              <thead>
                <tr>
                  <th>+</th>
                  <th>用户名</th>
                  <th>邮箱</th>
                  <th>手机号</th>
                  <th>状态</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              {%   for i in userinfo_result %}
                 <tr>
                   <td><input type="checkbox"/></td>
                   <td style="display:none">{{ i.id }}</td>
                   <td>{{ i.username }}</td>
                   <td>{{ i.email }}</td>
                   <td>{{ i.iphone }}</td>
                   <td>{{ i.status }}</td>
                   <td><a>参看详情</a></td>
                </tr>
              {%  endfor %}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
<<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/static/jquery-1.12.4.js"></script>
    <script>window.jQuery || document.write('<script src="/static/jquery-1.12.4.js""><\/script>')</script>
    <script src="/static/bootstrap-3.3/js/bootstrap.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="/static/bootstrap-3.3/js/holder.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="/static/bootstrap-3.3/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
